package com.seleniti.enpareja.controller.model.integration.service;

import java.util.Date;
import java.util.List;
import java.util.Set;

import org.ioc.commons.integration.common.RequestManager;
import org.ioc.commons.integration.service.Service;

import com.seleniti.enpareja.controller.model.integration.database.domain.WorkShift;
import com.seleniti.enpareja.controller.model.integration.database.domain.WorkShift.Shift;

public interface WorkShiftService extends Service {

	RequestManager<WorkShift> find(String id);

	RequestManager<Void> delete(WorkShift element);

	RequestManager<Void> createOrReplace(Date date, Shift shiftMember1, Shift shiftMember2, String comment1, String comment2);

	RequestManager<List<WorkShift>> getList(Date from, Date to, boolean createIfMissing);

	RequestManager<Void> deleteAll(Set<WorkShift> selection);
}
